package com.bawei.exam57

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.bawei.exam57.base.BaseViewActivity
import com.bawei.exam57.base.BaseViewModel
import com.bawei.exam57.databinding.ActivityMainBinding

class MainActivity : BaseViewActivity<ActivityMainBinding>() {
    override fun initView() {
        val hostFragment =
            supportFragmentManager.findFragmentById(R.id.fragmentContainerView) as NavHostFragment
        val navController = hostFragment.navController
        binding.bottomNavigation.setupWithNavController(navController)
    }

    override fun initData() {

    }

    override fun getLayoutId(): Int {
        return R.layout.activity_main
    }


}